import UserInfo from './components/UserInfo.js'
import BookInfoParam from './components/BookInfoParam.js'

var template = `
    <div>
        <UserInfo></UserInfo>
        <BookInfoParam v-for="(book,i) in books" :key="i" :bookname="book.name" :price="book.price"/>
    </div>
`

var myModule = {
    data(){
        return{
           books:[
               {name:"图书1",price:21},
               {name:"图书2",price:22},
               {name:"图书3",price:23},
               {name:"图书4",price:24},
            ]
        }
    },
    //局部引入
    components:{
        UserInfo,BookInfoParam
    },
    template
};

export default myModule;